package com.order.service;

import com.github.pagehelper.PageInfo;
import com.order.dto.OrderDTO;
import com.order.dto.OrderDetailDTO;
import com.order.pojo.OrderMaster;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cucu
 * @since 2025-08-11
 */
public interface IOrderMasterService extends IService<OrderMaster> {

    PageInfo<OrderMaster> getOrderMasterByPage(Integer page, Integer size, OrderMaster orderMaster);

    OrderDTO createOrder(OrderDTO orderDTO);

    boolean cancelOrder(String orderId, String openid);

    List<OrderDTO> getOrderList(String openid);

    OrderDetailDTO getOrderDetail(String orderId, String openid);

    OrderDTO findOne(String orderId);

    BigDecimal sumMoney();
}
